package com.atguigu.spzx.manager.service;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.sys.SysUser;
import com.atguigu.spyx.model.dto.system.LoginDto;
import com.atguigu.spyx.model.dto.system.SysUserDto;
import com.atguigu.spyx.model.vo.system.LoginVo;
import com.atguigu.spyx.model.vo.system.ValidateCodeVo;
import com.github.pagehelper.PageInfo;

/**
 * @author LT
 * @create 2023-10-31-19:42
 */
public interface SysUserService {
    SysUser getUserInfo(String token);

    LoginVo login(LoginDto loginDto);

    ValidateCodeVo genValidateCodeImg();

    void  Logout(String token);

    PageInfo<SysUser> getUserPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void deleteById(Integer id);

    SysUser getById(Integer id);

    void updateById(SysUser sysUser);

    void saveUser(SysUser sysUser);
}
